const todoData = require("./todo-data");
const doingData = require("./doing-data");
const doneData = require("./done-data");

const rewrites = {
  "/label/all?status=todo": "/todoData",
  "/label/all?status=doing": "/doingData",
  "/label/all?status=done": "/doneData",

  "/label/my?status=todo": "/todoData?name=my",
  "/label/my?status=doing": "/doingData?name=my",
  "/label/my?status=done": "/doneData?name=my",

  "/label/front?status=todo": "/todoData?name=front",
  "/label/front?status=doing": "/doingData?name=front",
  "/label/front?status=done": "/doneData?name=front",

  "/label/service?status=todo": "/todoData?name=service",
  "/label/service?status=doing": "/doingData?name=service",
  "/label/service?status=done": "/doneData?name=service",

  "/label/design?status=todo": "/todoData?name=design",
  "/label/design?status=doing": "/doingData?name=design",
  "/label/design?status=done": "/doneData?name=design",
};

const mock = () => ({
  db: {
    todoData,
    doingData,
    doneData,
  },
  rewrites,
});

module.exports = mock;
